package com.aos.erp.manager.model.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: erp
 * @description:
 * @author: tanzhiyu
 * @create: 2018-11-06 19:06
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("部门用户")
public class UserDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    private Long id;

    @ApiModelProperty(value = "用户状态（-2:：删除，-1 ；-1：禁用；0：待激活 1：正常）", hidden = true)
    private Integer state;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("部门id")
    private String depId;

    @ApiModelProperty("部门类型：\\r\\nA:敖雄\\r\\nC:车管所\\r\\nJ：驾校总校\\r\\nF：驾校分校\\r\\nB：报名点\\r\\nD：部门\\r\\n")
    private  String  depType;

    @ApiModelProperty("父级部门code")
    private String parentCode;

    @ApiModelProperty("部门名称")
    private String depName;

    @ApiModelProperty("部门code")
    private String depCode;

    @ApiModelProperty(value = "分校部门code", hidden = true)
    private String depCodeF;

    @ApiModelProperty(value = "分校部门名称", hidden = true)
    private String depCodeFName;

    @ApiModelProperty(value = "报名点部门code", hidden = true)
    private String depCodeB;

    @ApiModelProperty(value = "报名点部门名称", hidden = true)
    private String depCodeBName;

    @ApiModelProperty("岗位id")
    private String  positionId;

    @ApiModelProperty("岗位code")
    private String positionCode;

    @ApiModelProperty("岗位名称")
    private String positionName;

    @ApiModelProperty("操作人")
    private String operatorName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String created;

    @ApiModelProperty(value = "用户到期时间 （默认空表示长期）", hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expireDatetime;

    @ApiModelProperty("角色id")
    private long roleId;
}
